<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="utf-8">
        <title>楼栋编辑</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="renderer" content="webkit">

        <link rel="shortcut icon" href="../../../extends/img/favicon.ico" />
        <!-- Loading Bootstrap -->
        <link href="../../../extends/css/main.css" rel="stylesheet">

        <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
        <!--[if lt IE 9]>
        <script src="../../../assets/html5shiv.min.js"></script>
        <script src="../../../assets/respond.min.js"></script>
        <![endif]-->
        <script type="text/javascript">
            var require = {
                "config": {
                    "site": {
                        "name": "xshop",
                        "cdnurl": "../../../",
                        "version": "1.0.0",
                        "timezone": "Asia/Shanghai",
                        "languages": {
                            "backend": "zh-cn",
                            "frontend": "zh-cn"
                        }
                    },
                    "upload": {
                        "cdnurl": "./",
                        "uploadurl": "data/upload.json",
                        "bucket": "yourbucketname",
                        "maxsize": "10mb",
                        "mimetype": "*",
                        "multipart": {
                            "policy": "eyJidWNrZXQiOiJ5b3VyYnVja2V0bmFtZSIsInNhdmUta2V5IjoiXC91cGxvYWRzXC97eWVhcn17bW9ufXtkYXl9XC97ZmlsZW1kNX17LnN1ZmZpeH0iLCJleHBpcmF0aW9uIjoxNTAwNTI2NTczLCJub3RpZnktdXJsIjoiaHR0cDpcL1wvd3d3LnlvdXJzaXRlLmNvbVwvdXB5dW5cL25vdGlmeSJ9",
                            "signature": "043eaf09c0319b1a9a11d06511bfdc4e",
                            "bucket": "yourbucketname",
                            "save-key": "/uploads/{year}{mon}{day}/{filemd5}{.suffix}",
                            "expiration": 1500526573,
                            "notify-url": "http://www.yoursite.com/upyun/notify"
                        },
                        "multiple": false
                    },
                    "modulename": "biz",
                    "controllername": "buildingEdit",
                    "actionname": "edit",
                    "jsname": "main/js/biz/building",
                    "moduleurl": "./",
                    "language": "zh-cn",
                    "referer": null
                }
            };
        </script>
        <style>
        	.btn-google {
        		color: #fff;
        		cursor: pointer;
        		background: #dd4b39 !important;
        	}
        	li:nth-last-child(2):hover > .close-tab {
			    display: block;
			}
			li .close-tab {
			    font-size: 10px;
			    position: absolute;
			    right: 5px;
			    top: 50%;
			    margin-top: -7px;
			    z-index: 100;
			    cursor: hand;
			    cursor: pointer;
			    display: none;
			}
        </style>
    </head>

    <body class="inside-header inside-aside is-dialog">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <div class="content">
                                <form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="/building">
                        			<div id="errtips" class="hide"></div>
                        			<input type="hidden" name="id" />
                        			<input type="hidden" name="enable" />
			                        <div class="form-group col-xs-6 col-sm-6 col-md-6 col-lg-6">
	                                    <label class="control-label col-xs-12 col-sm-3">
	                                    	<span class="text-danger">*</span> 所属区域：
	                                    </label>
	                                    <div class="col-xs-12 col-sm-8 no-padding">
	                                    	<select name="areaId" class="form-control selectbox" data-rule="required">
			                                    <option value="">--请选择--</option>
	                                        </select>
	                                    </div>
	                                </div>
	                                
			                        <div class="form-group col-xs-6 col-sm-6 col-md-6 col-lg-6">
			                            <label class="control-label col-xs-12 col-sm-3">
			                                <span class="text-danger">*</span> 楼栋名称：
			                            </label>
			                            <div class="col-xs-12 col-sm-8 no-padding">
			                                <input type="text" name="buildingName" class="form-control" placeholder="请输入楼栋名称" data-rule="required">
			                            </div>
			                        </div>
			                        
			                        <div class="form-group col-xs-6 col-sm-6 col-md-6 col-lg-6">
	                                    <label class="control-label col-xs-12 col-sm-3">
	                                    	<span class="text-danger">*</span> 物业经理：
	                                    </label>
	                                    <div class="col-xs-12 col-sm-8 no-padding">
			                                <input type="text" name="managerId" class="form-control" placeholder="请输入物业经理姓名/手机号" data-rule="required">
	                                    </div>
	                                </div>
			                        
			                        <div class="form-group col-xs-6 col-sm-6 col-md-6 col-lg-6">
	                                    <label class="control-label col-xs-12 col-sm-3">
	                                    	<span class="text-danger">*</span> 房屋类型：
	                                    </label>
	                                    <div class="col-xs-12 col-sm-8 no-padding">
	                                    	<select name="houseType" class="form-control selectbox">
			                                    <option value="1">住宅</option>
			                                    <option value="2">别墅</option>
			                                    <option value="3">写字楼</option>
			                                    <option value="4">商铺</option>
			                                    <option value="5">自住型商品房</option>
	                                        </select>
	                                    </div>
	                                </div>
	                                
			                        <div class="form-group col-xs-6 col-sm-6 col-md-6 col-lg-6">
			                            <label class="control-label col-xs-12 col-sm-3">
			                                <span class="text-danger">*</span> 电梯数：
			                            </label>
			                            <div class="col-xs-12 col-sm-8 no-padding">
			                                <input type="text" name="elevatorNum" class="form-control" placeholder="请输入电梯数" data-rule="required,digits">
			                            </div>
			                        </div>
			                        
			                        <div class="form-group col-xs-6 col-sm-6 col-md-6 col-lg-6">
			                            <label class="control-label col-xs-12 col-sm-3">
			                                物业费
			                            </label>
			                            <div class="col-xs-12 col-sm-8 no-padding">
			                                <input type="text" name="manageFee" class="form-control" placeholder="请输入物业费(元/月/平方)" data-rule="number">
			                            </div>
			                        </div>
				            		<div class="form-group col-xs-6 col-sm-6 col-md-6 col-lg-6">
			                            <label class="control-label col-xs-12 col-sm-3">
			                                <span class="text-danger">*</span> 总楼层：
			                            </label>
			                            <div class="col-xs-12 col-sm-8 no-padding">
			                                <input type="text" name="totalFloor" class="form-control" placeholder="请输入总楼层" data-rule="required,digits">
			                            </div>
			                        </div>
				            		<div class="form-group col-xs-6 col-sm-6 col-md-6 col-lg-6">
			                            <label class="control-label col-xs-12 col-sm-3">
			                                单元数：
			                            </label>
			                            <div class="col-xs-12 col-sm-8 no-padding">
			                                <input type="text" name="totalUnit" class="form-control" placeholder="请输入单元数" data-rule="digits">
			                            </div>
			                        </div>
	                                
	                                <hr style="width: 100%"/>
	                                
			                        <div class="nav-tabs-custom">
			                        	<ul class="nav nav-tabs">
							              <li class="" id="addUnit">
							              	<a href="#unit" data-toggle="tab" aria-expanded="false">
							              		<i class="fa fa-plus"></i> 单元
							              	</a>
							              	<i class="close-tab fa fa-remove"></i>
							              </li>
							            </ul>
							            <div class="tab-content">
							            	<div class="tab-pane active" id="unit">
						                        <div class="form-group col-xs-8 col-sm-8 col-md-8 col-lg-8">
						                            <label class="control-label col-xs-12 col-sm-4">
						                                每层房屋数：
						                            </label>
						                            <div class="col-xs-12 col-sm-7 no-padding">
						                                <input type="text" name="floorHourse" class="form-control" placeholder="请输入每层房屋数">
						                            </div>
						                        </div>
						                        
						                        <button type="button" class="btn btn-info ben-house">生成</button>
				                                <div class="form-group houses" style="padding-left:5%;"></div>
							            	</div>
							            </div>
			                        </div>
	                                
                                    <div class="form-group layer-footer">
                                        <label class="control-label col-xs-12 col-sm-2"></label>
                                        <div class="col-xs-12 col-sm-8">
                                            <button type="submit" class="btn btn-success btn-embossed disabled">确定</button>
                                            <button type="reset" class="btn btn-default btn-embossed">重置</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="../../../assets/requirejs/require.js" data-main="../../../extends/js/main.js"></script>
    </body>
</html>